<?php

declare (strict_types = 1);

namespace app\adminapi\validate;

use think\Validate;

class UserValidate extends Validate
{
    protected $rule = [
      'username'  => 'require|max:32',
    ];

    protected $message  =   [
      'username.require' => '请填写用户名称',
    ];
  
    protected $scene = [
      'add'    =>  ['username'],
      'edit'    =>  ['username'],
    ];    
}